package com.lute.model;

import java.util.GregorianCalendar;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class NotepadEntry {

	private int id_notepad_entry;
	private GregorianCalendar date;
	private CompanyCategory companyCategory;
	private float hours;
	private float creativeHours;
	

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId_notepad_entry() {
		return id_notepad_entry;
	}
	public void setId_notepad_entry(int id_notepad_entry) {
		this.id_notepad_entry = id_notepad_entry;
	}
	public float getHours() {
		return hours;
	}
	public void setHours(float hours) {
		this.hours = hours;
	}
	public GregorianCalendar getDate() {
		return date;
	}
	public void setDate(GregorianCalendar date) {
		this.date = date;
	}
	public float getCreativeHours() {
		return creativeHours;
	}
	public void setCreativeHours(float creativeHours) {
		this.creativeHours = creativeHours;
	}
	@ManyToOne
	@JoinColumn(name="id_company_category")
	public CompanyCategory getCompanyCategory() {
		return companyCategory;
	}
	public void setCompanyCategory(CompanyCategory companyCategory) {
		this.companyCategory = companyCategory;
	}
}
